# 03-捕获多个异常.py
try:
    print(1/0)
except (NameError,ZeroDivisionError)as e:
    print(e)
